Skip to main content

HCAddressing

Type

property

Summary

Determines whether grouped fields and card buttons are assumed if the field or button's domain is not specified.

Syntax

set the HCAddressing of <stack> to {true | false}

Description

Use the HCAddressing property for compatibility with HyperCard.

When you open a HyperCard stack and convert it to a LiveCode stack, the new stack's HCAddressing property is set to true.

If the HCAddressing property is set to true, expressions in the stack's scripts that refer to fields without specifying card or background are assumed to refer to grouped controls, and expressions that refer to other control types are assumed to refer to card controls. For example, the number of fields reports the number of grouped fields, while button 5 refers to the fifth card button. Also, the values reported by the long or abbreviated name and ID properties of controls include "card" or "background" as the first word, depending on whether the control is part of a group.

If the HCAddressing property is false, expressions that refer to fields or buttons without specifying card or background are assumed to refer to all fields or buttons. For example, the number of fields reports the total number of card and background fields, and button 5 refers to the fifth button.

If a stack's HCAddressing property is true, the style property of a button whose style is "menu" reports "popup" instead. This is because HyperCard uses a style setting of "popup" to designate popup menus.

Examples

set the HCAddressing of stack nextImport to true

property: style, properties, backgroundBehavior, name, ID

command: group

function: stacks

glossary: domain, script, HyperCard, property, control, expression, stack, card, grouped control, background, value, card control, button

keyword: abbreviated, button, long, field, control

object: field, stack, button

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?